const types = {
  state: {
    rollNumber: 0,
    rollListPageNo: 1,
    rollList: []
  },

  mutations: {
    SET_ROLL: (state, options) => {
      state.rollNumber = options;
    },
    SET_ROLLPAGENO: (state, options) => {
      state.rollListPageNo = options;
    },
    SET_ROLLLIST: (state, options) => {
      state.rollList = options;
    },
  },

  actions: {
    ROLL({
      commit
    }, data) {
      commit("SET_ROLL", data);
    },
    ROLLPAGENO({
      commit
    }, data) {
      commit("SET_ROLLPAGENO", data);
    },
    ROLLLIST({
      commit
    }, data) {
      commit("SET_ROLLLIST", data);
    },
  }
};

export default types;
